queue using two stacks hackerrank solution